import request from './http'
/**
 * 获取书籍章节
 * @params 
 * @params tocId 书籍id
 * 
 */
export function getXMLBookLists(params) {
	return request({
		url: "/yunyuedu/book/catalog.json",
		method: 'get',
		params
	})
}

/**
 * 获取书籍章节m
 * 
 * @params source_uuid 书籍id
 * 
 */
export function getMBookLists(params) {
	return request({
		url: "/yunyuedu/reader/book/info.json",
		method: 'get',
		params
	})
}

/**
 * 获取书籍章节
 * @params id 书籍id
 * @params title 书籍名字
 * 
 */


export function getBookDetail(params) {
	return request({
		url: "/yunyuedu/book/getsub.json",
		method: 'get',
		params
	})
}
/**
 * 获取最新一章更新时间
 * @params id 书籍id
 * 
 * 
 */


export function getLastSection(params) {
	return request({
		url: "/yunyuedu/book/simpleInfo.json",
		method: 'get',
		params
	})
}
/**
 * 获取书籍图片
 * @params sourceUuid 书籍id
 * 
 * 
 */


export function getBookImg(params) {
	return request({
		url: "/yunyuedu/book/info.json",
		method: 'get',
		params
	})
}